The file is in the directory you indicated. I also placed a copy directly in the C Programs folder to no avail...
-Brad Murry
--- In
DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> It is flagging an error at Line 56 in KMotionDef.h which is:
> Â
> #include "PC-DSP.h" // contains common structures shared by PC and DSP
> Â
> so the compiler probably can't find that file. It should be in the DSP_KFLOP folder next to the KMotionDef.h file. Those are the only 2 headers normally needed.
> Â
> Regards
> TKÂ
> Â
> Â
>
>
> --- On Fri, 7/1/11, bradodarb <bradodarb@...> wrote:
>
>
> From: bradodarb
<bradodarb@...>
> Subject: [DynoMotion] Re: Kmotion files
> To:
DynoMotion@yahoogroups.com> Date: Friday, July 1, 2011, 3:14 PM
>
>
> Â
>
>
>
> Thanks Tom,
>
> Adding the registry key seems like the way we will go.
>
> I am having a bit of trouble still trying to compile and run programs using the following call:
>
> CKMotionDLL *KM_dll=(CKMotionDLL *)handle;
> long rslt=KM_dll->LoadCoff(board,Thread,Name,false);
>
> I am just using the print.c to get a nice Hello World back from the board.
>
> I am able to compile(it generates an .out file) but it will not execute.
>
> I receive the following response::
>
> In file
included from <c file name>:1:
> E:\DynoMotion\C Programs/KMotionDef.h:56:
>
> I get this error even when trying to run the c file from the install dir's C Programs folder.
>
> Please advise
>
> -Brad Murry
>
> --- In
DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Brad,
> > ÂÂ
> > Unfortunately it is a bit complex. There are a number of components that make up KMotion System. The components needed to run are:
> > ÂÂ
> > <Install>\KMotion\Release - contains DLLs EXEs (release versions)
> > ÂÂ
> > <Install>\KMotion\Debug - contains DLLs EXEs (debug
versions)
> > ÂÂ
> > <Install>\KMotion\Data - various data files, screen persist states, settings, logs, etc
> > ÂÂ
> > <Install>\KMotion\Help - HTML Help files
> > ÂÂ
> > <Install>\DSP_KFLOP - DSP headers and link object for TCC67 Compiler
> > ÂÂ
> > <install>\USB Driver - Used to initially install USB Drivers for Windows
> > ÂÂ
> > Some of the executables and DLLs expect this directory structure based on where they are executed from.
> > ÂÂ
> > ÂÂ
> > The remainder of the directory structure are examples of C programs, GCode Programs, PC Programs, and Source Code that are not necessarily needed at run time.
> > ÂÂ
> > Probably the simplest approach to distribute your application would be to leave our
directory structure intact and place your application executable into our <Install>\KMotion\Release directory the same in the same manner as our example applications do.
> > ÂÂ
> > Alternatively if you wish to place your application elsewhere you could set the Window's PATH variable to include the <Install>\KMotion\Release directory.
> > ÂÂ
> > Or if you prefer not to modify the global Windows PATH, Windows has an APP_PATHS key in the Registry were you can assign a search path that is specific to your application.
> > ÂÂ
> > I hope this helps,
> > ÂÂ
> > TK
> >
> >
> > --- On Fri, 7/1/11, bradodarb <bradodarb@> wrote:
> >
> >
> > From: bradodarb <bradodarb@>
> > Subject: [DynoMotion] Kmotion files
> > To:
DynoMotion@yahoogroups.com> > Date: Friday, July 1, 2011, 8:21 AM
> >
> >
> > ÂÂ
> >
> >
> >
> > Hello,
> >
> > While creating a c# framework for the Kflop, I have become a bit confused as to what the best practices are for managing the location for all the referenced files.
> >
> > I am looking to keep it tidy, and also to make it easy to update the refs as Dynomotion releases new updates.
> >
> > I started to re-route some of the refs in your DLL's but thought better of it when the scenario of doing this every time Dynomotion releases an update entered my mind.
> >
> > Some are straight forward to discover through the debugger, but
others do not surface until run-time like the below error when I try to compile and download a C file to the controller:
> >
> > I receive this error as a call back if my solution is not in the installed source directory.
> >
> > \dsp_kmotion\dspkmotion.out not found.....
> >
> > If I place the requested folder+file in the root directory, all is well.
> > Does this have to do with the TCC compiler?
> >
> > The worst error I get on some test machines is this:
> > ___________________________________________
> > Unable to execute:
> >
> > KMotionServer.exe
> >
> > Try re-installing software or copy this file to the same location as KMotion.exe
> > ____________________________________________
> >
> > I have both of these files as well as many other Dynomotion files in the same folder as the
KMotionDLL.dll is located that my c# library is using.
> >
> > Do you have a road map to the references when creating a new project?
> >
> > Is there a way you guys could add to your source a mechanism to specify the location of important files/ folders(if it is not already there)? Again, I could do this but it would be nice if it was there in each new update.
> >
> > Thanks for your time.
> >
> > -Brad Murry
> >
>